package com.ssl.admin.feign;

import com.ssl.common.response.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("product-service")
public interface ProductServiceClient {

    @RequestMapping("/product/on-sale")
    CommonResponse onSaleToEs(@RequestBody Map<String, Object> onSaleBody);

    @RequestMapping("seata/testing2")
    void testing();
}
